using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;

public class YiShangBuff : BuffBase
{

    protected override void OnEnable()
    {
        base.OnEnable();
        isCountDown = true;
        BuffItem = Instantiate(Resources.Load("Buff/YiShangBuff")) as GameObject;
        BuffText = BuffItem.transform.GetComponentInChildren<TextMesh>();
        BuffItem.transform.SetParent(enemy.buffs);
    }

    protected override void CountDown()
    {
        base.CountDown();
        if (isDone)
        {
            if (enemy != null)
            {
                Destroy(transform.GetComponent<YiShangBuff>());
                Destroy(BuffItem);
            }
            isDone = false;
        }
    }

    public override void CountUp(int val)
    {
        base.CountUp(val);
    }

    public override void SetStartCount(int val)
    {
        base.SetStartCount(val);
    }

    protected override void UpdateCountText()
    {
        base.UpdateCountText();
    }
}
